#ifndef ONPS_EMAC_PORT_H
#define ONPS_EMAC_PORT_H

#ifdef SYMBOL_GLOBALS
   #define EMAC_EXT
#else
   #define EMAC_EXT extern
#endif //* SYMBOL_GLOBALS
   
#define DHCP_REQ_ADDR_EN    1       //* dhcp请求ip地址使能宏   
   
#define NETIF_ETH_NAME      "eth0"  //* ethernet网卡名称    
#define DP83848_PHY_ADDRESS 0x01    //* phy地址，参见原理图

//* mac地址定义   
#define MAC_ADDR0_DEFAULT 0x4E
#define MAC_ADDR1_DEFAULT 0x65
#define MAC_ADDR2_DEFAULT 0x6F
#define MAC_ADDR3_DEFAULT 0x22
#define MAC_ADDR4_DEFAULT 0x06
#define MAC_ADDR5_DEFAULT 0x01
   
#define PRIMARY_DNS_DEFAULT   "1.2.4.8"
#define SECONDARY_DNS_DEFAULT "8.8.8.8"
      
EMAC_EXT BOOL emac_init(void);
EMAC_EXT INT emac_send(SHORT sBufListHead, UCHAR *pubErr); 
EMAC_EXT void ETH_IRQHandler(void); 

#endif